<?php if($session->check("Auth.User.id")){?>
	<h2 class="red"><?php __d("store","Logaut")?></h2>
 	<?php echo $session->read("Auth.User.email")?> | 
    <?php echo $html->link(__d("store","Wyloguj sie",true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('class'=>'button float-right'));?>
<?php }else{?>
<h2 class="red"><?php __d("store","Login")?></h2>
	<?php
	echo $this->Form->create('User', array('url' => array('plugin'=>false,'controller' => 'users', 'action' =>'login'),'class'=>'float-right','style'=>'width:  125px;'));
	echo $this->Form->input('User.email',array('label'=>__d("store","E-mail",true),'class'=>'float-right'));
	echo $this->Form->input('User.password',array('class'=>'float-right'));
	echo $this->Form->end(array('label'=>__d("store","Login",true),'class'=>'float-right'));	
	?>
	<div class="clr"></div>
	<?php echo $html->link(__d("store","Zapomniales haslo?",true),array('plugin'=>false,'controller'=>'users','action'=>'new_password',$this->data['User']['id']),array('class'=>'float-right'));?>
<?php }?>
<div class="clr"></div>
